package com.jichangxiu.system.entity.dto.query;

import com.jichangxiu.common.entity.dto.QueryEntity;
import com.jichangxiu.system.entity.bo.SysInfoBo;
import com.jichangxiu.system.entity.po.SysInfo;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * QuerySysInfo:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:24
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Schema(description = "系统登录信息")
@AutoMappers({
        @AutoMapper(target = SysInfo.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysInfoBo.class, reverseConvertGenerate = false)
})
public class QuerySysInfo extends QueryEntity {

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 业务类型
     */
    @Schema(description = "业务类型")
    private String type;

    /**
     * IP地址
     */
    @Schema(description = "IP地址")
    private String address;

    /**
     * IP定位
     */
    @Schema(description = "IP定位")
    private String location;

    /**
     * 浏览器
     */
    @Schema(description = "浏览器")
    private String browser;

    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    private String system;

    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    private String param;

    /**
     * 结果信息
     */
    @Schema(description = "结果信息")
    private String result;

    /**
     * 异常信息
     */
    @Schema(description = "异常信息")
    private String exception;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private Boolean status;

    /**
     * 短令牌
     */
    @Schema(description = "短令牌")
    private String jti;

    /**
     * 长令牌
     */
    @Schema(description = "长令牌")
    private String jwt;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String userId;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 是否扩展
     */
    @Schema(description = "是否扩展")
    private Boolean isExtend;

}